package comparators;

import java.util.Comparator;

import datastructures.MyNode;

public class AStarSearchComparator implements Comparator<MyNode> {

	@Override
	public int compare(MyNode arg0, MyNode arg1) {
		double nodeCost1 = arg0.getF();
		double nodeCost2 = arg1.getF();
		
		if(nodeCost1>nodeCost2) return 1;
		else if(nodeCost1<nodeCost2) return -1;

		return 0;
	}

}
